package total;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Ques1020JdkSort {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = 0;
		List<Integer> scoreList = new ArrayList<Integer>();
		while(scan.hasNext()){
			n = scan.nextInt();
			for(int i = 0;i < n;i++){
				scoreList.add(scan.nextInt());
			}
			int temp = 0;
			Collections.sort(scoreList);
			Collections.reverse(scoreList);
			String result = "";
			for(int i : scoreList){
				result += i;
				result +=" ";
			}
			result.trim();
			System.out.println(result);
		}
	
	}
}
